﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Model.ClienteModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Editar
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Editar usuário</h2>

<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>

<% using (Html.BeginForm()) { %>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>ClienteModel</legend>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.clogin) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.clogin) %>
            <%: Html.ValidationMessageFor(model => model.clogin) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.csenha) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.csenha) %>
            <%: Html.ValidationMessageFor(model => model.csenha) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.cnome) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.cnome) %>
            <%: Html.ValidationMessageFor(model => model.cnome) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.capelido) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.capelido) %>
            <%: Html.ValidationMessageFor(model => model.capelido) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.cdatanasc) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.cdatanasc) %>
            <%: Html.ValidationMessageFor(model => model.cdatanasc) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.cendereco) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.cendereco) %>
            <%: Html.ValidationMessageFor(model => model.cendereco) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.cnumero) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.cnumero) %>
            <%: Html.ValidationMessageFor(model => model.cnumero) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.cbairro) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.cbairro) %>
            <%: Html.ValidationMessageFor(model => model.cbairro) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.ccomplemento) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.ccomplemento) %>
            <%: Html.ValidationMessageFor(model => model.ccomplemento) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.ccep) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.ccep) %>
            <%: Html.ValidationMessageFor(model => model.ccep) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.ccidade) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.ccidade) %>
            <%: Html.ValidationMessageFor(model => model.ccidade) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.cestado) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.cestado) %>
            <%: Html.ValidationMessageFor(model => model.cestado) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.ccelular) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.ccelular) %>
            <%: Html.ValidationMessageFor(model => model.ccelular) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.cemail) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.cemail) %>
            <%: Html.ValidationMessageFor(model => model.cemail) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.IDcliente) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.IDcliente) %>
            <%: Html.ValidationMessageFor(model => model.IDcliente) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.cflag) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.cflag) %>
            <%: Html.ValidationMessageFor(model => model.cflag) %>
        </div>

        <p>
            <input type="submit" value="Salvar" />
            <input type = "reset" value = "Apagar Campos"/>
        </p>
    </fieldset>
<% } %>

<div>
    <%: Html.ActionLink("Voltar", "Index") %>
</div>

</asp:Content>

